package com.hutu.erp.catalog.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品分类对象 catalog_category
 * 
 * @author ruoyi
 * @date 2021-05-24
 */
public class Category extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品分类id */
    private Long categoryId;

    /** 父级分类id */
    @Excel(name = "父级分类id")
    private Long parentId;

    /** 祖级列表 */
    @Excel(name = "祖级列表")
    private String ancestors;

    /** 名称 */
    @Excel(name = "名称")
    private String categoryName;

    /** 简称 */
    @Excel(name = "简称")
    private String alternativeName;

    /** 编码 */
    @Excel(name = "编码")
    private String categoryCode;

    /** 查询码 */
    @Excel(name = "查询码")
    private String lookup;

    /** 图片id */
    @Excel(name = "图片id")
    private Long pictureId;

    /** 商品分类描述 */
    @Excel(name = "商品分类描述")
    private String description;

    /** 是否已公开上架（0代表上架 2代未上架） */
    @Excel(name = "是否已公开上架", readConverterExp = "0=代表上架,2=代未上架")
    private Integer published;

    /** 删除标志（0代表存在 2代表删除） */
    @Excel(name = "删除标志", readConverterExp = "0=代表存在,2=代表删除")
    private Integer deleted;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Long displayOrder;

    /** 创建者 */
    private String createdBy;

    /** 创建时间 */
    private Date createdAt;

    /** 更新者 */
    private String updatedBy;

    /** 更新时间 */
    private Date updatedAt;

    public boolean isHandled() {
        return handled;
    }

    public void setHandled(boolean handled) {
        this.handled = handled;
    }

    private  boolean handled;

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setAncestors(String ancestors) 
    {
        this.ancestors = ancestors;
    }

    public String getAncestors() 
    {
        return ancestors;
    }
    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }
    public void setAlternativeName(String alternativeName) 
    {
        this.alternativeName = alternativeName;
    }

    public String getAlternativeName() 
    {
        return alternativeName;
    }
    public void setCategoryCode(String categoryCode) 
    {
        this.categoryCode = categoryCode;
    }

    public String getCategoryCode() 
    {
        return categoryCode;
    }
    public void setLookup(String lookup) 
    {
        this.lookup = lookup;
    }

    public String getLookup() 
    {
        return lookup;
    }
    public void setPictureId(Long pictureId) 
    {
        this.pictureId = pictureId;
    }

    public Long getPictureId() 
    {
        return pictureId;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setPublished(Integer published) 
    {
        this.published = published;
    }

    public Integer getPublished() 
    {
        return published;
    }
    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }
    public void setDisplayOrder(Long displayOrder) 
    {
        this.displayOrder = displayOrder;
    }

    public Long getDisplayOrder() 
    {
        return displayOrder;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("categoryId", getCategoryId())
            .append("parentId", getParentId())
            .append("ancestors", getAncestors())
            .append("categoryName", getCategoryName())
            .append("alternativeName", getAlternativeName())
            .append("categoryCode", getCategoryCode())
            .append("lookup", getLookup())
            .append("pictureId", getPictureId())
            .append("description", getDescription())
            .append("published", getPublished())
            .append("deleted", getDeleted())
            .append("displayOrder", getDisplayOrder())
            .append("createdBy", getCreatedBy())
            .append("createdAt", getCreatedAt())
            .append("updatedBy", getUpdatedBy())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
